package com.hgw.Demo06_MementoPattern.upgradeExamples;

/**
 * Data time:2021/12/18 21:04
 * StudentID:2019112118
 * Author:hgw
 * Description: 象棋棋子备忘录，充当备忘录
 */
public class ChessmanMemento {
    private String label;
    private int x;
    private int y;

    public ChessmanMemento(String label, int x, int y) {
        this.label = label;
        this.x = x;
        this.y = y;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }
}
